//
//  CustomView.m
//  cm
//
//  Created by suyibaishan on 2017/10/31.
//  Copyright © 2017年 feihu. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self constructUI];
    }
    return self;
}

-(void)constructUI
{
    _priceLabel = [[UILabel alloc] init];
    _priceLabel.textAlignment = NSTextAlignmentCenter;
    _priceLabel.font = [UIFont systemFontOfSize:13];
    _priceLabel.text = @"¥100.00";
    _priceLabel.textColor = [UIColor blackColor];
    [self addSubview:_priceLabel];
    _priceLabel.sd_layout
    .topSpaceToView(self, 10)
    .leftSpaceToView(self, 0)
    .widthIs(kScreenWidth/3)
    .heightIs(20);
    
    _titleLabel = [[UILabel alloc] init];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.font = [UIFont systemFontOfSize:13];
//    _titleLabel.text = @"直接奖励";
    _titleLabel.textColor = [UIColor colorWithRed:0.32 green:0.32 blue:0.32 alpha:1];
    [self addSubview:_titleLabel];
    _titleLabel.sd_layout
    .topSpaceToView(_priceLabel, 0)
    .leftSpaceToView(self, 0)
    .widthIs(kScreenWidth/3)
    .heightIs(20);
}

@end
